#include "maingraphics.h"
#include <Maestro/mcplugins.h>
#include "themesettings.h"

MainGraphics::MainGraphics()
{

}

void MainGraphics::setMainPlugins(QList<MenuItemInterface *> * plugins) {
    this->menuPlugins=plugins;
}

QWidget * MainGraphics::initialize(QWidget * parent) {
    qDebug()<<"initializing";
    this->graphicsPlugin = new GraphicsPlugin(parent);

    graphicsPlugin->setWindowFlags(Qt::FramelessWindowHint);
    graphicsPlugin->setMainPlugins(menuPlugins);
    return graphicsPlugin;
}

void MainGraphics::setAddonPlugins(QList<FileAddonInterface *> * plugins) {
    graphicsPlugin->setAddonPlugins(plugins);
}

void MainGraphics::setStylePlugins(QList<StyleInterface *> * plugins) {
        //graphicsPlugin->setStylePlugins(plugins);

}

void MainGraphics::test() {
    graphicsPlugin->test();
}

Q_EXPORT_PLUGIN2(bmc_graphicsplugin, MainGraphics)
